﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Login.aspx.cs" Inherits="Login" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>MES报表系统登录</title>
    <link href="styles/FormObjects.css" type="text/css" rel="Stylesheet" />
    <link href="styles/Text.css" type="text/css" rel="Stylesheet" />
    <link rel="stylesheet" href="styles/Login.css" type="text/css" />
    <script type="text/javascript">
        function LoginProving() {
            var uid = new String(document.getElementById("userNameTxtBox").value);
            var pwd = new String(document.getElementById("passwordTxtBox").value);
            if (uid.replace(' ', '') == 0) {
                alert("请输入账号！");
                document.getElementById("userNameTxtBox").value = "";
                window.event.returnValue = false;
                return;
            }
            if (pwd.replace(' ', '') == 0) {
                alert("请输入密码！");
                document.getElementById("passwordTxtBox").value = "";
                window.event.returnValue = false;
                return;
            }
        }
    </script>
</head>
<body style="background: url(images/body.jpg) #035178 fixed no-repeat center center;">
    <form id="Default" method="post" runat="server">
    <div id="login_wrap" style="z-index: 100">
        <asp:Button ID="reloadButton" runat="server" Text="Reload" Style="display: none">
        </asp:Button>
        <div style="text-align: center; font-size: 24px; font-family: 微软雅黑; text-align: center;
            margin-bottom: 10px; font-weight: 500; letter-spacing: 0.1em;">
            MES报表管理系统</div>
        <div id="login_topper">
        </div>
        <div id="login_middle" style="border: 2px; border-color: White; padding-bottom: 10px;">
            <table id="login_content">
                <tr>
                    <td colspan="3" style="font-family: Trebuchet MS">
                        <span id="loginLabel" style="font-size: 12pt; font-weight: bold; text-align: left;">
                        </span>
                    </td>
                </tr>
                <tr>
                    <td class="td_label">
                        <span id="userNameLabe2" style="color: White; font-family: 宋体; font-size: 11pt; font-weight: bold;">
                            账号 *</span>
                    </td>
                    <td style="padding-top: 5px; width: 10px;">
                        <img id="img1" src="Images/ControlIslandMarker.png" alt="" style="display: none" />
                    </td>
                    <td class="td_edit" style="padding: 0px;">
                        <asp:TextBox ID="userNameTxtBox" runat="server" CssClass="login_edit" BackColor="white"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="td_label">
                        <span id="passwordLabe2" class="login_label" style="color: White; font-family: 宋体;
                            font-size: 11pt; font-weight: bold;">密码 *</span>
                    </td>
                    <td style="padding-top: 5px; width: 10px;">
                        <img id="imgPasswordRequired" src="Images/ControlIslandMarker.png" alt="" style="display: none" />
                    </td>
                    <td class="td_edit" style="padding: 0px;">
                        <asp:TextBox ID="passwordTxtBox" runat="server" TextMode="Password" CssClass="login_edit"
                            BackColor="white"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td colspan="3" style="padding-left: 175px; padding-top: 10px;">
                        <asp:Button ID="loginButton" Text="登录" runat="server" CssClass="SubmitButton" Width="61px"
                            Height="25px" OnClick="loginButton_Click" OnClientClick="LoginProving();"></asp:Button>
                    </td>
                    <td>
                        <asp:TextBox ID="txtEmployeeid" runat="server" CssClass="login_edit" BackColor="#fefede"
                            Visible="False"></asp:TextBox>
                    </td>
                </tr>
            </table>
        </div>
        <div id="login_bottom">
            &nbsp;</div>
    </div>
    </form>
</body>
</html>
